package com.qf.qfssm.web.master.service;

import com.qf.qfssm.web.master.entity.Customer;
import com.qf.qfssm.web.master.ex.CustomerException;
import com.qf.qfssm.web.master.vo.CustomerVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface CustomerService {


    void deleteByPrimaryKey(Long[] ids) throws CustomerException;

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    void updateByPrimaryKey(CustomerVo customerVo) throws CustomerException;

    List<Customer> getCustomerAll(CustomerVo customerVo);

    Customer selectByUsernameAndPassword(String username, String password);

    int register(CustomerVo customerVo, MultipartFile multipartFile, String filePath) throws IOException;

    void selectCustomer(Customer customer) throws CustomerException;

    List<Customer> pageQuery(Integer index, Integer limit);

    void addCustomer(CustomerVo customerVos) throws CustomerException;

    List<Customer> selectAll();

    String exprot(List<Customer> customers);

    Customer getCustomer(String name, String password);

}
